//
//  CustomChartView.h
//  iMoc
//
//  Created by 微我网络 on 15/1/16.
//  Copyright (c) 2015年 lamcelot. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MPGraphView.h"
#import "MPPlot.h"


@interface CustomChartView : UIImageView

typedef NS_ENUM(NSInteger, ChartViewStyle) {
    ChartViewStyleAmount,
    ChartViewStyleSleep
};

@property (nonatomic,strong) MPGraphView  *graph;
@property (nonatomic) ChartViewStyle style;

@property (nonatomic) CGFloat targetValue;
@property (nonatomic,copy)   NSString *value;
@property (nonatomic,strong) NSMutableArray *values;
@property (nonatomic,strong) NSMutableArray *xTitle;
@property (nonatomic) BOOL showPoints;


- (instancetype)initWithFrame:(CGRect)frame style:(ChartViewStyle)style;

@end
